package org.ielts.domain.report;

import java.text.DecimalFormat;

public class TeacherBlankLessonReport {
	private String techerId;
	private String teacherName;
	private long totalLessonNum;
	private long blankLessonNum;
	private String blankRate;
	
	private static DecimalFormat formater=new DecimalFormat("0.00");
	
	public TeacherBlankLessonReport() {
		
	}
	
	public TeacherBlankLessonReport(String techerId, String teacherName,
			long totalLessonNum, long blankLessonNum) {
		super();
		this.techerId = techerId;
		this.teacherName = teacherName;
		this.totalLessonNum = totalLessonNum;
		this.blankLessonNum = blankLessonNum;
	}



	public TeacherBlankLessonReport(String techerId, String teacherName,
			long totalLessonNum) {
		super();
		this.techerId = techerId;
		this.teacherName = teacherName;
		this.totalLessonNum = totalLessonNum;
	}



	public String getTecherId() {
		return techerId;
	}
	public void setTecherId(String techerId) {
		this.techerId = techerId;
	}
	public String getTeacherName() {
		return teacherName;
	}
	public void setTeacherName(String teacherName) {
		this.teacherName = teacherName;
	}
	public long getTotalLessonNum() {
		return totalLessonNum;
	}
	public void setTotalLessonNum(long totalLessonNum) {
		this.totalLessonNum = totalLessonNum;
	}
	public long getBlankLessonNum() {
		return blankLessonNum;
	}
	public void setBlankLessonNum(long blankLessonNum) {
		this.blankLessonNum = blankLessonNum;
	}
	public String getBlankRate() {
		double rate=0.00;
		if(totalLessonNum!=0){
			rate=(double)blankLessonNum/totalLessonNum;
			rate=rate*100;
		}
		blankRate=formater.format(rate);
		return blankRate;
	}
	
}
